<template>
  <div class="pt-iframe">
    <iframe
      v-show="iframe.id === $parent.sideActive"
      v-for="iframe in $parent.iframes"
      :key="iframe.id"
      :src="iframe.url"
      frameborder="0"
    ></iframe>
  </div>
</template>

<style lang="less" scoped>
.pt-iframe {
  height: 100%;
  iframe {
    width: 100%;
    height: 100%;
  }
}
</style>
